#include "Blocks/IronDoorBlock.h"

namespace PocketSurvival
{
    int32_t IronDoorBlock::getIndex()
    {
        return Index();
    }
    const std::string &IronDoorBlock::getBlockName()
    {
        static std::string blockName = "IronDoorBlock";
        return blockName;
    }

    const std::vector<BoundingBox> &IronDoorBlock::getCustomCollisionBoxes(int32_t value)
    {
        int32_t num = Terrain::ExtractData(value);
        if (num < GET_ARRAY_LEN(BlockConstans::ironDoorCollisionBoxes))
        {
            return BlockConstans::ironDoorCollisionBoxes[num];
        }
        return BlockConstans::zeroCollisionBoxes;
    }

} // namespace PocketSurvival
